# -*- coding: utf-8 -*-
from operator import irshift

from sklearn import datasets, svm



def sk_svm():
    """
    iris: 鸢尾花
    sepal: 花瓣
    petal: 花萼


    """
    iris = datasets.load_iris()
    print(iris.feature_names)
    print(iris.target_names)
    clf = svm.SVC(C=100.0, gamma=0.001)
    clf.fit(iris.data[:-1], iris.target[:-1])
    predict = clf.predict(iris.data)
    print(predict)
    pass

if __name__ == '__main__':
    sk_svm()
    pass